﻿#include<iostream>
class ROLE {
public:
	int hp;
	void BeAct(int damage) {
		hp = hp - damage;
		std::cout << "BeAct" << damage << std::endl;
	}
	void _stdcall BeAct1(int damage, int damage2) {//把eax当成第3个参数
		hp = hp - damage;
		std::cout << "BeAct" << damage << std::endl;
	}
	void _cdecl BeAct2(int damage, int damage2) {//把eax当成第3个参数，会恢复栈
		hp = hp - damage;
		std::cout << "BeAct" << damage << std::endl;
	}
};
int main() {
	ROLE player;
	player.BeAct(20);
}